<template>
    <router-view></router-view>
    <CommonToast ref="toastRef" />
</template>

<script lang="ts">
import { defineComponent, onMounted, ref } from "vue";
import Main from "@/layout/Main.vue";
import app from "@/main";
export default defineComponent({
    components: {
        Main,
    },
    setup() {
        const toastRef = ref(null);
        onMounted(()=>{
            app.config.globalProperties.$toast = toastRef.value;
        })
        console.log("VUE_APP_baseURL: ", process.env.VUE_APP_baseURL);
        return {
            toastRef,
        };
    },
});
</script>

<style scoped lang="scss"></style>
